1 <%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="sanpham.aspx.cs" Inherits="sanpham" Title="Untitled Page" %>
2 <%@ Register TagPrefix=
"cc1" Namespace="SiteUtils" Assembly= "CollectionPager" %>
3
4 <asp:Content ID=
"Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
5     <div align=
"center" > <asp:DataList ID="DataList1" runat="server" RepeatColumns="4"
6         OnSelectedIndexChanged=
"DataList1_SelectedIndexChanged"
7         onitemcommand=
"DataList1_ItemCommand" style="text-align: right">
8         <ItemTemplate>
9             <table
10                 
11                 style=
"border-right: black 1px solid; border-top: black 1px solid; border-left: black 1px solid;
12                 width: 125px; border-bottom: black 1px solid; height: 154px; background-color: #ffffff"
>
13                 <tr>
14                     <td align=
"left" style="width: 205px; height: 12px; text-align: center"
15                         valign=
"middle">
16                         <asp:Image ID=
"Image5" runat="server" Height="30px"
17                             ImageUrl=
'<%# "dienthoai/"+Eval("mahang")+".jpg" %>' Width="104px" />
18                     </td>
19                 </tr>
20                 <tr>
21                     <td align=
"center" style="width: 205px; height: 100px; text-align: center"
22                         valign=
"top">
23                         <asp:Image ID=
"Image4" runat="server" Height="86px" ImageUrl='<%# "dienthoai/"+Eval("anh") %>'
24                             Width=
"85px" />
25                     </td>
26                 </tr>
27                 <tr>
28                     <td align=
"center" style="width: 205px; height: 14px; text-align: center"
29                         valign=
"top">
30                         <asp:HyperLink ID=
"HyperLink1" runat="server" Height="40px"
31                             Text=
'<%# Eval("tensp") %>' NavigateUrl='<%# Eval("chitiet") %>'></asp:HyperLink>
32                     </td>
33                 </tr>
34                 <tr>
35                     <td align=
"center" style="width: 205px" valign="top">
36                         <div align=
"center"
37                             style=
"font-size: 12px; color: #cc0000; font-family: Tahoma">
38                             <asp:Label ID=
"Label6" runat="server" Font-Size="Smaller" Text="Giá"></asp:Label>
39                             <asp:Label ID=
"Label7" runat="server" Font-Size="Smaller" Text='<%# Eval("gia") %>'
40                                 Width=
"37px"></asp:Label>
41                             <span style=
"font-size: 9pt">VNĐ</span></div>
42                     </td>
43                 </tr>
44                 <tr>
45                     <td style=
"width: 205px; height: 18px; text-align: center" valign="top">
46                         <asp:Label ID=
"Label8" runat="server" Font-Size="Smaller" Text="Bảo hành"></asp:Label>
47                         <asp:Label ID=
"Label9" runat="server" Font-Size="Smaller" Text='<%# Eval("baohanh") %>'
48                             Width=
"56px"></asp:Label>
49                     </td>
50                 </tr>
51                 <tr>
52                     <td style=
"width: 205px; height: 18px; text-align: center" valign="top">
53                         <asp:ImageButton ID=
"ImageButton2" runat="server"
54                             ImageUrl=
"~/Images/Chonmua1.jpg" onclick="ImageButton2_Click"
55                             oncommand=
"ImageButton2_Command" CommandName="Select" />
56                     </td>
57                 </tr>
58                 <tr>
59                     <td style=
"width: 205px; height: 18px; text-align: center" valign="top">
60                         <asp:Label ID=
"Label10" runat="server" Font-Size="Smaller"
61                             style=
"color: #FF3300; font-size: small; background-color: #FFFFFF"
62                             TabIndex=
"12" Text="Đã đưa vào giỏ hàng" Visible="False" Width="111px"></asp:Label>
63                     </td>
64                 </tr>
65             </table>
66         </ItemTemplate>
67     </asp:DataList></div>
68     <br />
69     <span style=
"color: #0000ff; text-decoration: underline"></span>
70     
71     <cc1:CollectionPager ID=
"clp1" runat="server"></cc1:CollectionPager>
72         
73 </asp:Content>



Quản lý website giới thiệu và bán điện thoại di động ASP.net 19.304 lượt xem

Gõ tìm kiếm nhanh...